Fix app_name.

Akinori MUSHA 10 years ago
parent
commit
f84a9c24eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/views/devise/registrations/new.html.erb

+ 1 - 1
app/views/devise/registrations/new.html.erb

@@ -9,7 +9,7 @@
9 9
           <%= devise_error_messages! %>
10 10
           <% if ENV['ON_HEROKU'] && User.count.zero? %>
11 11
           <div class="heroku-instruction">
12
-            <% app_name = request.host[/\A.+/] %>
12
+            <% app_name = request.host[/\A[^.]+/] %>
13 13
             <p>If you are the owner of this application, run the following commands to complete the setup.</p>
14 14
             <%= content_tag :pre do -%>
15 15
 heroku git:clone <%= app_name %>